package com.community.common.controller;


import com.community.common.pojo.response.MyResponse;
import com.community.common.service.ExcelService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * <p>
 * 小区表 前端控制器
 * </p>
 *
 * @author superman
 * @since 2020-08-02
 */
@Controller
@RequestMapping("/excel")
public class ExcelController {

    @Resource
    private ExcelService excelService;

    @ResponseBody
    @GetMapping
    public MyResponse add() {
        excelService.initData();
        return MyResponse.success("完美");
    }


}
